package com.se.mapper;

import com.se.domain.mysql.RecordDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface RecordMapper {
    @Select("select * from record where apply_id = #{applyId} and active = true")
    List<RecordDO> listByApplyId(@Param("applyId") Long applyId);

    void insertAll(@Param("list") List<RecordDO> recordDOList);

    @Select("select * from record where q_id = #{qId} and active = true")
    List<RecordDO> listByQId(@Param("qId") Long qId);
}
